/**
 * @author ItJianGe
 * @data 2024/7/22 17:40
 */
public class Main {
    public static void main(String[] args) {
        // 懒汉创建对象
        LazySingle lazySingle = LazySingle.getLazySingle();
        lazySingle.say();


        // 饿汉创建对象
        HungrySingle hungrySingle = HungrySingle.getLazySingle();
        hungrySingle.say();
    }
}